package com.vehicle.service;

import com.vehicle.bean.College;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vehicle.form.CollegeForm;
import com.vehicle.vo.CollegeListVO;
import com.vehicle.vo.CollegeOptionsVO;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-04-20
 */
@Service
public interface CollegeService extends IService<College> {
    public boolean insertCollege(String ip,Integer id,CollegeForm collegeForm);

    public String getNameById(Integer collegeId);
    public Integer getUniverId(Integer collegeId);
    public CollegeListVO getAllCollegeList(Integer page,Integer size);
    public CollegeListVO getAllListByUniverId(Integer univerId, Integer page,Integer size);

    public Boolean updateTheCollage(String ip,Integer id,College college);
    public Boolean deleteCollegeById(String ip,Integer id,Integer collegeId);

    public List<CollegeOptionsVO> getCollegeOp();


}
